#include "IM_CoreApi.h"
#include <QDebug>
using namespace IM_GUI_KIT;

IM_CoreApi::IM_CoreApi()
{
  qDebug()<<"init core";
  listControl=new FriendAndSessionListControl();
}

IM_CoreApi::~IM_CoreApi()
{
  qDebug()<<"delete core";
  delete listControl;
}

FriendAndSessionListControl *IM_CoreApi::getListControl()
{
  if(listControl!=nullptr)
    return listControl;
}

void IM_CoreApi::setMyUid(const QString &uid)
{
  myUId=uid;
}

QString IM_CoreApi::getMyUid() const
{
  return myUId;
}

void IM_CoreApi::setListApiPort(QObject *api)
{
  listApiPort=api;
}

QObject *IM_CoreApi::getListApiPort()
{
  return listApiPort;
}
